import Vue from 'vue'
import Vuex from 'vuex'
import todos from './modules/todos'
Vue.use(Vuex)

const store =new Vuex.Store({
  //严格模式
  strict:process.env.NODE_ENV==='development',
  modules: {
    // 模块名：模块对象
    todos
  }
})

//导出
export default store